<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title></title>
</head>
<body>
<jsp:useBean id="user" class="cn.com.zpark.bean.User" scope="request"></jsp:useBean>
<%--设置属性值--%>
<%
    user.setUsername("张三");
    user.setPwd("123456");
    user.setSex("男");
%>
<%--打印user--%>
<%= user.toString() %>
</body>
</html>